//-----------------------------------------------------------------------
// <copyright file="a_RateLogService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_RateLogService
    {
        #region a_RateLog

        public static void Createa_RateLog(a_RateLog a_RateLog)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                a_RateLogDAO.Createa_RateLog(a_RateLog);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }

        public static void Createa_RateLog(int ImgId, string Ckid, int Rating)
        {
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                a_RateLogDAO.Createa_RateLog(ImgId, Ckid, Rating);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }  

        public static void Updatea_RateLog(a_RateLog a_RateLog)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                a_RateLogDAO.Updatea_RateLog(a_RateLog);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_RateLog(int rid)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                a_RateLogDAO.Deletea_RateLog(rid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_RateLog Geta_RateLog(int rid)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                return a_RateLogDAO.Geta_RateLog(rid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_RateLogCollection Geta_RateLogList(a_RateLogColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                return a_RateLogDAO.Geta_RateLogList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_RateLogCollection Geta_RateLogList(a_RateLogColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_RateLogDAO a_RateLogDAO = new a_RateLogDAO();
                return a_RateLogDAO.Geta_RateLogList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}